import request from '@/utils/request'

export default {
    list() {
        return request({
            url: '/course/list',
            method: 'post'
        })
    },
    page(data) {
        return request({
            url: '/course/page',
            method: 'post',
            data
        })
    },
    save(data) {
        return request({
            url: '/course/save',
            method: 'post',
            data
        })
    },
    delete(id) {
        return request({
            url: '/course/delete',
            method: 'post',
            data: { id }
        })
    },
    info(id) {
        return request({
            url: '/course/info',
            method: 'post',
            data: { id }
        })
    }
}
